<?php

defined('BASEPATH') or die('forbidden');

// shared_options : highcharts global settings, like interface or language
$config['highcharts']['shared_options'] = array(
    'chart' => array(
        'renderTo' => 'chart',
        'backgroundColor' => array(
            'linearGradient' => array(0, 500, 0, 0),
            'stops' => array(
                array(0, '#ffffff'),
                array(1, '#f4f4f4'),
            )
        ),
        'colors' => array(
            '#2782D6', '#ED561B', '#50B432', '#0D233A', '#8F1919'
        ),
        'shadow' => false
    )
);

// Template Example
$config['highcharts']['default'] = array(
    'chart' => array(
    ),
    'credits' => array(
        'enabled' => false,
    ),
    'title' => array(
        'text' => ''
    ),
    'legend' => array(
        'enabled' => true
    ),
    'yAxis' => array(
        'title' => array(
            'text' => ''
        ),
    ),
    'xAxis' => array(
        'title' => array(
            'text' => ''
        ),
        'lineWidth' => 1,
        'labels' => array('rotation' => -45, 'align' => 'right', 'step' => 1)
    ),
    'plotOptions' => array(
        'line' => array(
            'visible' => true,
        ),
    ),
    'tooltip' => array(
        'shared' => true
    )
);